package View;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import Model.ClienteView;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class MenuAutomovil extends javax.swing.JFrame {
	private static String titulo = "Menu Automovil";
	private JButton Alta;
	private JButton Baja;
	private JButton Volver;
	private JButton Modificar;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				MenuAutomovil inst = new MenuAutomovil();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public MenuAutomovil() {
		super(titulo);
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				Alta = new JButton();
				getContentPane().add(Alta);
				Alta.setText("Alta Automovil");
				Alta.setBounds(114, 33, 124, 23);
				Alta.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						AltaAutomovil aauto= new AltaAutomovil();
						aauto.setVisible(true);
						dispose();
						}
				});
			}
			{
				Modificar = new JButton();
				getContentPane().add(Modificar);
				Modificar.setText("Modificar Automovil");
				Modificar.setBounds(102, 87, 152, 23);
				Modificar.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent evt) {
				ModificarAutomovil mauto= new ModificarAutomovil();
					mauto.setVisible(true);
					dispose();
					}
				});
				
			}
			{
				Baja = new JButton();
				getContentPane().add(Baja);
				Baja.setText("Baja Automovil");
				Baja.setBounds(114, 138, 124, 23);
				Baja.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
					BajaAutomovil bauto= new BajaAutomovil();
						bauto.setVisible(true);
						dispose();
						}
					});
			}
			{
				Volver = new JButton();
				getContentPane().add(Volver);
				Volver.setText("Volver al Menu");
				Volver.setBounds(114, 228, 134, 23);
				Volver.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
												
						dispose();
						}
					});
				
			}
			pack();
			setSize(400, 342);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
